package com.xiaoxi.proxymode;

/**
 * @Author xiaoxi
 * @ProjectName design_mode
 * @PackageName com.xiaoxi.proxymode
 * @ClassName Main
 * @Description TODO
 * @Date 2023/4/6 21:52
 * @Version 1.0
 */
public class Main {
    public static void main(String[] args) {
        ProxyPrinter printer = new ProxyPrinter();
        printer.setPrinterName("代理打印机Alice");
        System.out.println(printer.getPrinterName());
        printer.setPrinterName("代理打印机job");
        System.out.println(printer.getPrinterName());
        printer.print("hello world !");
    }
}
